/* pages/goods_detail/index.wxss */
page {
  padding: 0 10rpx;
}
.top-wrap {
  height: ~'calc(100vh - 90rpx)';
}
.swiper-wrap {
  height: ~'calc(100vw * 300 /400)';
  swiper-item {
    display: flex;
    justify-content: center;
    align-items: center;
    image {
      width: 60%;
    }
  }
}
.good-price {
  font-size: 32rpx;
  color: var(--themeColor);
  padding-top: 15rpx;
  padding-bottom: 15rpx;
}
.good-name {
  display: flex;
  color: #666;
  border-bottom: 10rpx solid #fafafa;
  padding-bottom: 4rpx;
  .good-title {
    flex: 5;
    border-right: 2rpx solid #ccc;
    padding-right: 10rpx;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .start {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
  }
}
.good-info {
  .info-title {
    font-size: 36rpx;
    color: var(--themeColor);
    padding: 15rpx 0;
    border-bottom: 10rpx solid #fafafa;
  }
  .info-content {
    border-top: 2rpx solid #000;
    padding-top: 10rpx;
  }
}
.tab-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 90rpx;
  display: flex;
  width: 100vw;
  border-top: 2rpx solid #ccc;
  .tab-item {
    position: relative;
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    button {
      position: absolute;
      top:0;
      left: 0;
      opacity: 0;
      width: 100%;
      height: 100%;
    }
    .mp-badge {
      color: #fff;
      background: var(--themeColor);
      width: 40rpx;
      height: 40rpx;
      border-radius: 20rpx;
      position: absolute;
      top:10%;
      right: 10%;
      font-size: 26rpx;
      line-height: 40rpx;
      text-align: center;
    }
  }
  .tab-button {
    flex: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 30rpx;
  }
  .btn-warning {
    background: #ffc50d;
  }
  .btn-error {
    background: var(--themeColor);
  }
}